/*
********************************************************************************
* Copyright (C) 2022, xiang.D <dx_65535@163.com>.
* All right reserved.
*
* File Name   : originator.h
* Author      :
* Version     : V1.0
* Description :
* Journal     : 2022-03-04 version v1.0
* Brief       : Blog: https://blog.csdn.net/qq_38750572?spm=1001.2014.3001.5343
* Others      :
                Compile command: make
********************************************************************************
*/
#ifndef __ORIGINATOR_H__
#define __ORIGINATOR_H__

#include "memento.h"

typedef struct
{
    int   level;
    float blood;
    char  date[64];
} SAttrValue;

class COriginator
{
public:
    COriginator();

    ~COriginator();

    CMemento* Save();

    void Restore(CMemento *pMemento);

    void SetAttribute(SAttrValue *pAttr);

    void ShowInfo();

private:
    SAttrValue mAttrValue;
};

#endif
